package mundialfp.view.ws;

import uy.com.pzit.fpmundialmodel.web.ws.MundialResponse;



/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */



/**
 *
 * @author pferraz
 */
public class MundialWSService {

    
    public static MundialResponse updateMundial(uy.com.pzit.fpmundialmodel.web.ws.Mundial mundial) {
        uy.com.pzit.fpmundialmodel.service.MundialServiceImplService service = new uy.com.pzit.fpmundialmodel.service.MundialServiceImplService();
        uy.com.pzit.fpmundialmodel.service.MundialService port = service.getMundialServiceImplPort();
        return port.updateMundial(mundial);
    }

    public static MundialResponse getLastMundial() {
        uy.com.pzit.fpmundialmodel.service.MundialServiceImplService service = new uy.com.pzit.fpmundialmodel.service.MundialServiceImplService();
        uy.com.pzit.fpmundialmodel.service.MundialService port = service.getMundialServiceImplPort();
        return port.getLastMundial();
    }

    public static MundialResponse newMundial() {
        uy.com.pzit.fpmundialmodel.service.MundialServiceImplService service = new uy.com.pzit.fpmundialmodel.service.MundialServiceImplService();
        uy.com.pzit.fpmundialmodel.service.MundialService port = service.getMundialServiceImplPort();
        return port.newMundial();
    }
    
     public static MundialResponse newMundialFifaX() {
        uy.com.pzit.fpmundialmodel.service.MundialServiceImplService service = new uy.com.pzit.fpmundialmodel.service.MundialServiceImplService();
        uy.com.pzit.fpmundialmodel.service.MundialService port = service.getMundialServiceImplPort();
        return port.newMundialFifaX();
    }

    public static MundialResponse nextPhaseSorteo(uy.com.pzit.fpmundialmodel.web.ws.Mundial mundial) {
        uy.com.pzit.fpmundialmodel.service.MundialServiceImplService service = new uy.com.pzit.fpmundialmodel.service.MundialServiceImplService();
        uy.com.pzit.fpmundialmodel.service.MundialService port = service.getMundialServiceImplPort();
        return port.nextPhaseSorteo(mundial);
    }

    public static MundialResponse getLastMundialFifaX() {
        uy.com.pzit.fpmundialmodel.service.MundialServiceImplService service = new uy.com.pzit.fpmundialmodel.service.MundialServiceImplService();
        uy.com.pzit.fpmundialmodel.service.MundialService port = service.getMundialServiceImplPort();
        return port.getLastMundialFifaX();
    }



}
